<template>
  <div class="error-container">
    <el-result icon="warning" title="401" sub-title="抱歉，您没有访问权限">
      <template #extra>
        <el-space>
          <el-button type="primary" @click="goHome">返回首页</el-button>
        </el-space>
      </template>
    </el-result>
  </div>
</template>

<script setup lang="ts">
import { useRouter } from 'vue-router'

const router = useRouter()

const goHome = () => router.push('/')
</script>

<style scoped>
.error-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: calc(100vh - 80px);
  background-color: #f5f7fa;
}
</style>
